<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}style.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}guestbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
{template "content","header-gb"}
<!--main-->
<div class="main center w1024">
    <div class="w980 center link">
        <!--left_bar-->
        <div class="col-left">
            <div class="_nav">
                <a href="{siteurl($siteid)}"><b>网站首页</b></a><span> &gt; </span><a href="{APP_PATH}index.php?m={ROUTE_M}&siteid={$siteid}">留言板</a>
            </div>
            <div class="_cbox">
                <table border="0" width="100%" class="h34 _title _repx">
                    <tr>
                        <td width="25" class="_icon"><img src="{IMG_PATH}web/icon1.png" /></td>
                        <td class="_name">默认分类</td>
                        <td align="right">
                            <span class="_more"><a href="{APP_PATH}index.php?m=guestbook&c=index&a=list_type&type_id=0&siteid={$siteid}" title="查看更多">更多...</a></span>
                        </td>
                    </tr>
                </table>
                <div class="_list">
					<div class="tag_a">
						{pc:guestbook action="lists" typeid="0" siteid="$siteid"  order="desc" num="6" return="dat"}
						{loop $dat $v}
						<table width="98%" border="0" class="center">
							<tr>
								<td width="25%">姓名：{$v[name]}</td>
								<td width="35%">性别：{$v[sex]}</td>
								<td>时间：{date('Y-m-d H:i:s',$v[addtime])} </td>
							</tr>
							<tr>
								<td colspan="4"><span><b>留言内容：</b>&nbsp;{$v[introduce]}</span></td>
							</tr>
							<tr>
								<td colspan="4"><span class="huifu"><b>管理员回复：</b>&nbsp;{$v[reply]}</span></td>
							</tr>
						</table>
						{/loop}
						{/pc}
					</div>
				</div>
                {pc:link action="type_lists" listorder="desc" siteid="$siteid"}
                {loop $data $type_v}
                <table border="0" width="100%" class="h34 _title _repx">
                    <tr>
                        <td width="25" class="_icon"><img src="{IMG_PATH}web/icon1.png" /></td>
                        <td class="_name">{$type_v[name]}</td>
                        <td align="right">
                            <span class="_more"><a href="{APP_PATH}index.php?m=guestbook&c=index&a=list_type&type_id={$type_v[typeid]}&siteid={$siteid}" title="查看更多">更多...</a></span>
                        </td>
                    </tr>
                </table>
                <div class="_list">
					<div class="tag_a">
						{pc:guestbook action="lists" typeid="$type_v[typeid]" siteid="$siteid"  order="desc" num="10" return="dat"}
						{loop $dat $v}
						<table width="98%" border="0"  align="center">
							<tr>
								<td width="30%">姓名：{$v[name]}</td>
								<td width="30%">性别：{$v[sex]}</td>
								<td>时间：{date('Y-m-d H:i:s',$v[addtime])} </td>
							</tr>
							<tr>
								<td colspan="2">留言内容：&nbsp;{$v[introduce]}</td>
								<td colspan="2"><span style="color:#F00">管理员回复：</span>&nbsp;{$v[reply]}</td>
							</tr>
						</table>
						{/loop}
						{/pc}
					</div>
				</div>
                {/loop}
                {/pc}
                <!--pages-->
            </div>
        </div>
        <!--right_bar-->
        <div class="col-auto">
            <!--广告228x90-->
            <div class="_rbox">
                <table border="0" width="100%" class="h34 _title">
                    <tr>
                        <td width="25" class="_icon"><img src="{IMG_PATH}web/icon3.png" /></td>
                        <td class="_name">留言板分类</td>
                        <td align="right" class="_more"></td>
                    </tr>
                </table>
				<div class="_list">
					<ul class="tag_a">
						<li>
							<img src="{IMG_PATH}web/arrow1.png" />
							<a href="{APP_PATH}index.php?m=guestbook&c=index&a=list_type&type_id=0&siteid={$siteid}" title="默认分类">默认分类</a>
						</li>
						{pc:guestbook action="type_lists" listorder="desc" siteid="$siteid"}
						{loop $data $type_v}
						<li>
							<img src="{IMG_PATH}web/arrow1.png" />
							<a href="{APP_PATH}index.php?m=guestbook&c=index&a=list_type&type_id={$type_v[typeid]}&siteid={$siteid}" title="{$type_v[name]}">{$type_v[name]}</a>
						</li>
						{/loop}
						{/pc}
					</ul>
				</div>
				{if $setting[$siteid]['is_post']=='1'}
				<div class="txt_c register">
					<a href="{APP_PATH}index.php?m=guestbook&c=index&a=register&siteid={$siteid}">我要留言</a>
				</div>
				{/if}
            </div>
            <div class="_clear"></div>
        </div>
        <div class="_clear"></div>
        {template "content","border-b"}
    </div>
</div>
{template "content","footer-min"} 
</body>
</html>
